﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using FrienDev.BusinessRules;
using FrienDev.Data;

public partial class Controls_Activity_AddFeedBackTable : System.Web.UI.UserControl
{
    private int m_activityID = -1;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (HttpContext.Current.Request["activityId"] != null)
        {
            int.TryParse(HttpContext.Current.Request["activityId"], out m_activityID);
        }
    }

    protected void submit_Click(object sender, EventArgs e)
    {
        string questionList = Request["questionResult"];
        ActivityRules.Instance.UpdateCustomFeedBackQuestion(m_activityID, questionList);
        Response.Redirect("~/Activity/Detail.aspx?activityId="+m_activityID);
    }

}